import request from '../../util/axios'

// 获取利用控制表树形结构
export const getLeftTree = (data) => {
  return request({
    url: '/yuyi-config-boot/modules/config-use-controller-from/useControllerFrom/tree',
    method: 'post',
    data: data
  })
}

// 分页查询利用控制表信息
export const getRightList = (data) => {
  return request({
    url: '/yuyi-config-boot/modules/config-use-controller-from/configusecontrollerfrom/paging',
    method: 'post',
    data: data
  })
}

// 新增利用控制表信息
export const addRightList = (data) => {
  return request({
    url: '/yuyi-config-boot/modules/config-use-controller-from/add',
    method: 'post',
    data: data
  })
}

// 修改利用控制表信息
export const editRightList = (data) => {
  return request({
    url: '/yuyi-config-boot/modules/config-use-controller-from/edit',
    method: 'put',
    data: data
  })
}

// 删除利用控制表信息
export const delRightList = (data) => {
  return request({
    url: '/yuyi-config-boot/modules/config-use-controller-from/deleteByIds',
    method: 'delete',
    data: data
  })
}
